<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">
<style>
.col-left{float:left}
.col-auto{overflow:hidden;_zoom:1;_float:left;}
.title-1{border-bottom:1px solid #eee; padding-left:5px}
.f14{font-size: 14px}
.lh28{line-height: 28px}
.blue,.blue a{color:#004499}
.gray4,a.gray4{color:#999;}
.lh22{line-height: 22px}
.lh25{line-height: 25px}
</style>
<div class="wrap J_check_wrap">
  <?php include $this->getViewFile('/common/Nav') ?>
  <div class="h_a">添加</div>
  <form method="post" action="<?php echo AdminBase::U("adlist") ?>">
  	<div class="search_type cc mb10">
    	<div class="mb10">
        广告标识：<input type="text" class="input length_2" name="admark" value="">
        广告名称：<input type="text" class="input length_2" name="adname" value="">
        阿里妈妈标识：<input type="text" class="input length_2" name="alimama" value="">
        <button class="btn">添加</button>
        <input name="save" type="checkbox" value="1"> 根据广告标识修改
        </div>
    </div>
  </form>
  <div class="h_a">查找</div>
  <form method="post" action="" id="searchForm">
    <div class="search_type cc mb10">
      <div class="mb10"> 
        时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="<?php echo $start_time?>" placeholder="选择起始时间">
        -
        <input type="text" class="input length_2 J_date" name="end_time" value="<?php echo $end_time?>" placeholder="选择结束时间">
      </div>
      <div class="mb10">
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="<?php echo $keyword?>" placeholder="请输入搜索内容...">
        <button class="btn">搜索</button>
      </div>
    </div>
  </form>
  <div class="mb10"> 共有 ( <b><?php echo $count; ?></b> ) 条信息</div>
  <form name="myform" action="<?php echo AdminBase::U("index") ?>" method="post" class="J_ajaxForm">
    <div class="table_list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <td width="50" align="center">ID</td>
            <td align="center">广告标识</td>
            <td align="center">访问总数</td>
            <td align="center">K页面总数</td>
            <td align="center">会员访问总数</td>
            <td align="center">游客访问总数</td>
            <td align="center">IP</td>
            <td align="center">UV</td>
            <td align="center">创建时间</td>
          </tr>
        </thead>
        <tbody>
          <?php
		  foreach($data as $rs){
		  ?>
          <tr>
            <td align="center"><?php echo $rs->id ?></td>
            <td align="center"><?php echo GuestAdlistModel::model()->getAdName($rs->adname) ?>(<?php echo $rs->adname ?>)</td>
            <td align="center"><?php echo $rs->view ?></td>
            <td align="center"><?php echo $rs->kview ?> - <?php echo $rs->kview && $rs->view ? round($rs->kview/$rs->view,3)*100 :0 ?>%</td>
            <td align="center"><?php echo $rs->userfanw ?></td>
            <td align="center"><?php echo $rs->youkefanw ?></td>
            <td align="center"><?php echo $rs->dip ?></td>
            <td align="center"><?php echo $rs->uv ?></td>
            <td align="center"><?php echo date('Y-m-d H:i:s',$rs->created_time) ?></td>
          </tr>
          <?php
		  }
		  ?>
        </tbody>
      </table>
      <div class="p10">
        <div class="pages"><?php echo $Page;?></div>
      </div>
    </div>
  </form>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script> 
<script>

</script>
</body>
</html>